package com.example.springboot_demo.mapper;

import com.example.springboot_demo.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {
    @Select("select * from tb_user where id=#{username} and password=#{password}")
    User login(@Param("username")String username,@Param("passoword")String password);
}
